home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Macintosh Sample Code / SC.011.GetZoneList / Makefile < prev    next >
Encoding:
Makefile  |  1990-04-30  |  3.3 KB  |  118 lines  |  [TEXT/MPS ]

  1. #     ------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    AppleTalk GetZoneList Sample Application
  6. #
  7. #    CGetZoneList & PGetZoneList
  8. #
  9. #    Makefile    -    Make Source
  10. #
  11. #    Copyright © 1988-1990 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    1.0                    November 1988
  15. #                1.1                    October 1989
  16. #                1.2                    May 1990
  17. #
  18. #    Components:    GetZoneList.c        May 1, 1990
  19. #                GetZoneList.p        May 1, 1990
  20. #                GetZoneList.r        May 1, 1990
  21. #                MakeFile            May 1, 1990
  22. #                UFailure.a            November 1, 1988
  23. #                UFailure.h            November 1, 1988
  24. #                UFailure.inc1.p        November 1, 1988
  25. #                UFailure.p            November 1, 1988
  26. #
  27. #    GetZoneList is a sample application that uses
  28. #    AppleTalk ATP and ZIP to obtain a list of zones
  29. #    on an AppleTalk internet.
  30. #
  31. #    GetZoneList also demonstrates using a signal, or
  32. #    failure-catching mechanism to recover from error
  33. #    situations.  Since C does not allow nested procedures
  34. #    a la Pascal, a few modifications were made to incorporate
  35. #    the failure handling and keep this sample fairly close in
  36. #    design to the Pascal sample.
  37. #    (Gee, thanks a lot M2 for using nested procs. - pvh)
  38. #
  39. #    GetZoneList is based on DTS Sample.c. For more
  40. #    description and explanation of the non-example
  41. #    specific areas of this application, please refer to
  42. #    either Sample.p or TESample.c.
  43. #
  44. #    ------------------------------------------------------------------------------
  45.  
  46. #SymOptions = -sym on                 # sure, why not use symbols.  we've got all day.
  47.  
  48. #    ------------------------------------------------------------------------------
  49. #
  50. #    Build Rules for CGetZoneList
  51. #
  52. #    ------------------------------------------------------------------------------
  53.  
  54. COptions = -r {SymOptions}             # turn on strict prototyping (-r option)
  55.  
  56. # Use these libraries for MPW 3.0/3.1
  57. CLibs            =    "{CLibraries}"CRuntime.o ∂
  58.                     "{CLibraries}"CInterface.o ∂
  59.                     "{Libraries}"Interface.o
  60.  
  61. # Use these libraries for MPW 3.2 or later
  62. #CLibs            =    "{Libraries}"Runtime.o ∂
  63. #                    "{Libraries}"Interface.o
  64.  
  65. CObjs            =     GetZoneList.c.o ∂
  66.                     UFailure.p.o ∂
  67.                     UFailure.a.o ∂
  68.                     {CLibs}
  69.  
  70. GetZoneList.c.o        ƒƒ    GetZoneList.c Makefile UFailure.h
  71.  
  72. CGetZoneList        ƒƒ    {CObjs} Makefile
  73.     Link {SymOptions} -mf -o {Targ} {CObjs}
  74.     SetFile {Targ} -t APPL -c '????' -a B
  75.  
  76. CGetZoneList        ƒƒ    'GetZoneList.r' Makefile
  77.     Rez -rd -o {Targ} 'GetZoneList.r' -append
  78.  
  79. UFailure.h            ƒ
  80.     IF NOT `Exists UFailure.h`
  81.         Echo "CGetZoneList needs the “UFailure.h” header from SC.012.Signals."
  82.         Exit 1
  83.     END
  84.  
  85. #    ------------------------------------------------------------------------------
  86. #
  87. #    Build Rules for PGetZoneList
  88. #
  89. #    ------------------------------------------------------------------------------
  90.  
  91. POptions = {SymOptions}
  92.  
  93. PObjs            =    GetZoneList.p.o ∂
  94.                     UFailure.p.o ∂
  95.                     UFailure.a.o ∂
  96.                     "{Libraries}"Runtime.o ∂
  97.                     "{Libraries}"Interface.o ∂
  98.                     "{PLibraries}"PasLib.o
  99.  
  100. GetZoneList.p.o        ƒƒ    GetZoneList.p Makefile UFailure.p
  101.  
  102. PGetZoneList        ƒƒ    {PObjs} Makefile
  103.     Link {SymOptions} -mf -o {Targ} {PObjs}
  104.     SetFile {Targ} -t APPL -c '????' -a B
  105.  
  106. PGetZoneList        ƒƒ    GetZoneList.r Makefile
  107.     Rez -rd -o {Targ} GetZoneList.r -append
  108.  
  109. #    ------------------------------------------------------------------------------
  110. #
  111. #    Build Rules for UFailure units
  112. #
  113. #    ------------------------------------------------------------------------------
  114.  
  115. UFailure.p.o        ƒƒ UFailure.p UFailure.inc1.p MakeFile
  116.  
  117. UFailure.a.o        ƒƒ UFailure.a MakeFile
  118.